const routes = [
    {
        path: '/',
        component: () => import('../pages/index/UserView.vue'),
        children: [
            {
                path: "",
                component: () => import('../pages/index/IndexView.vue')
            },
            {
                path: "index",
                component: () => import('../pages/index/IndexView.vue')
            },
            {
                path: "discover",
                component: () => import('../pages/index/DiscoverView.vue')
            },
            {
                path: "message",
                component: () => import('../pages/index/MessageView.vue'),
                children: [
                    {
                        path: "love",
                        component: () => import('../components/index/message/LoveView.vue')
                    },
                    {
                        path: "server",
                        component: () => import('../components/index/message/ServerView.vue')
                    },
                    {
                        path: "private",
                        component: () => import('../components/index/message/PrivateView.vue')
                    }
                ]
            },
            {
                path: "video/:id",
                component: () => import('../pages/index/VideoView.vue')
            },
            {
                path: "me",
                component: () => import('../pages/index/PersonalView.vue'),
                children: [
                    {
                        path: "dynamic",
                        component: () => import('../components/index/personal/PersonalDynamic.vue')
                    },
                    {
                        path: "video",
                        component: () => import('../components/index/personal/PersonalVideo.vue')
                    },
                    {
                        path: "follow",
                        component: () => import('../components/index/personal/PersonalFollow.vue')
                    },
                    {
                        path: "fan",
                        component: () => import('../components/index/personal/PersonalFan.vue')
                    },
                ]
            },
            {
                path: "upload",
                component: () => import('../pages/index/UploadView.vue')
            },
            {
                path: "update",
                component: () => import('../pages/index/PersonalEditView.vue')
            }
        ]
    },
];

export default routes;